package com.example.springbootexamples.domain;

import java.util.ArrayList;
import java.util.List;

public class Node {

    private String id;
    private String pid;
    private String value;
    private Node parent;
    private List<Node> child=new ArrayList<>();

    public Node(String id, String pid, String value) {
        this.id = id;
        this.pid = pid;
        this.value = value;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Node getParent() {
        return parent;
    }

    public void setParent(Node parent) {
        this.parent = parent;
    }

    public List<Node> getChild() {
        return child;
    }

    public void setChild(List<Node> child) {
        this.child = child;
    }
}
